package com.yimixian.app.rest.api;

import com.ta.utdid2.android.utils.StringUtils;
import com.yimixian.app.model.SearchKeyResult;

import org.json.JSONObject;

import retrofit.Callback;
import retrofit.client.Response;

/**
 * Created by zhilian-2 on 2015/10/10.
 */
public class ClearRedPointAPI extends YmxBaseAPI{

    public static final String CLEARURL = "/v4/reddot/clear";
    private String token;
    private String key;

    public ClearRedPointAPI(String token, String key, Callback<Response> cb){
        super(cb);
        this.token = token;
        this.key = key;
    }
    @Override
    public String getRelativeURL() {
        return CLEARURL;
    }

    public void toClearRedPoint(){
        if (!StringUtils.isEmpty(token) && !StringUtils.isEmpty(key)){
            mYmxRestService.clearRedPoint(token, key, mCallback);
        }
    }

    @Override
    public Object parseJson(JSONObject jsonObject) {

        return null;
    }

}
